#ifndef SQL_COMMANDS_H
#define SQL_COMMANDS_H
#include <mysql/mysql.h>
MYSQL* db_connect(const char* host, const char* user, const char* passwd, const char* db_name);
int db_execute(MYSQL *conn, const char* sql_query,MYSQL_RES **res_out);

void db_disconnect(MYSQL *conn);
int is_existed(MYSQL *conn,const char * sql_query);

int generate_salt(char *salt_buf, size_t buf_size);

#endif // SQL_COMMANS_H

